
const { adds, deleteByid, updateByid, gets, } = require('../servers/userSer.js')
module.exports = (router) => {
  /* GET home page. */
  router.get('/user', function (req, res, next) {
    gets(req, res)

  });
  router.post('/user', function (req, res, next) {
    adds(req, res)

  });
  router.delete('/user', function (req, res, next) {
    deleteByid(req, res)

  });
  router.put('/user', function (req, res, next) {
    updateByid(req, res)

  });

}


